package org.singledog.permission.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = PermissionProperties.PREFIX)
public class PermissionProperties {

    public static final String PREFIX = "spring.permission";

    private String[] factory;

    private PermissionProperties.Token token;

    private PermissionProperties.Login login;

    @Data
    public static class Token {
        private Long schedulePeriod = 5000L;
        private Long expire = 300000L;
    }

    @Data
    public static class Login {
        private Integer maxAddrLogin = 1;
        private Integer maxUserLogin = 1;
    }

}
